package demo2;


class Base{
    public int a=1;
    public int b=2;
    public void testBase(){
        System.out.println("testBase.....");
    }
    public void testA(){
        System.out.println("testA()......");
    }
}

class Derived extends Base{
    public int c=3;
    public  int a=123;
    public void testDerived(){
        System.out.println("testDerived.....");
    }

    public void testA(){
        System.out.println("testA(char a)......");
    }

    public void test(){
//        testBase();
//        testDerived();
        super.testA();
        testA();

    }

    public void test1(){
        System.out.println(this.a);
        System.out.println(super.a);
        System.out.println(this.b);
        System.out.println(this.c);
    }

}

public class Test {

    public static void main(String[] args) {
        Derived derived=new Derived();
        derived.test();
    }
}
